package huawei.exam4;

import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

/**
 * @author : Rookie
 * @description :
 * @date : 2023/1/4
 */
public class HJ97 {

    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int size = in.nextInt();
        List<Integer> nums = new ArrayList<>(size);
        for (int i = 0; i < size; i++) {
            nums.add(in.nextInt());
        }
        long fsCount = nums.parallelStream().filter(num -> num < 0).count();
        long zsCount = nums.parallelStream().filter(num -> num > 0).count();
        System.out.print(fsCount + " ");
        if (zsCount > 0) {
            nums.parallelStream().filter(num -> num >= 0).reduce(Integer::sum).ifPresent(sum -> {
                System.out.printf("%.1f",sum.floatValue() / zsCount);
            });
        } else {
            System.out.println(0.0);
        }
    }
}
